import React, { useDebugValue, useState } from 'react';

// 自定义的 hooks
function useMyHooks(fl){
  const [flag] = useState(fl || true)

  useDebugValue(flag ? 'Online' : 'Offline')

  return flag
}

const App = () => {

  const is = useMyHooks()

  return (
    <div>

    </div>
  );
};

export default App;
